package com.zlq.cn.admin.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 系统配置表
 * </p>
 *
 * @author zhoucl
 * @since 2022-12-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_config")
@ApiModel(value="SysConfig对象", description="系统配置表")
public class SysConfig implements Serializable {

    @TableId(value = "un_key", type = IdType.INPUT)
    @NotNull(message = "配置key不能为空")
    private String unKey;

    private String value;

    private String valueExt;

    @TableField(value = "`desc`")
    private String desc;

}
